﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SlamDunk.CMS.Model
{	
    /// <summary>
    /// DictionaryDetail实体类（手写部分）
    /// </summary>
	public partial class DictionaryDetail
	{	
		#region 01.方法——转换为视图模型对象
        /// <summary>
        /// 转换为视图模型对象方法
        /// </summary>
        /// <returns>视图模型对象</returns>
        public Model.DictionaryDetailView ToViewModel()
        {
            return new Model.DictionaryDetailView()
            {
                Id = this.Id,
                DictId = this.DictId,
                OptionName = this.OptionName,
                Description = this.Description,
                Sort = this.Sort,
                DelFlag = this.DelFlag,
                AddTime = this.AddTime,
            };
        }
        #endregion
	}
}
